import { isImageBase64 } from './isImageBase64';

// We aren't testing the content, only the header
const base64 =
	'';

describe('Test the isImageBase64', () => {
	it.each([
		['test', false],
		['/file-upload/oTQmb2zRCsYF4pdHv/help-image-url.png', false],
		[base64, true]
	])('return properly the boolean', (data, res) => {
		const result = isImageBase64(data);
		expect(result).toBe(res);
	});
});
